package com.aaa.ssm.service;

import com.aaa.ssm.entity.Role;
import com.aaa.ssm.entity.UserAndRole;

import java.util.List;

/**
 * @ fileName:UserAndRoleService
 * @ description: 用户角色中间表
 * @ date: 2023/3/28 18:39
 * @ version:1.0.0
 */
public interface UserAndRoleService {
    //添加
    int add(UserAndRole userAndRole);

    //根据id查询拥有的角色
    List<Role> queryById(Integer userId);
}
